package com.rongc.client.freight.business.mine.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  投诉
* */
public class ComplainApi extends AbsRequest<ComplainApi.ComplainParams, NullResult> {

    public ComplainApi(ComplainParams feedbackParams, Response.Listener<NullResult> listener, Response.ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getComplainUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class ComplainParams extends BaseParams {

        public ComplainParams(String sourceId,
                              String fk_id,String content) {
            put("type",UniApplication.getInstance().getType());
            put("sourceId", sourceId);
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
            put("fk_id", fk_id);
            put("mobile", UniApplication.getInstance().getUserInfo().getPhone());
            put("content", content);
        }
    }
}
